user@user-virtual-machine:~/Desktop/1_July/pawykey/pwnykey$ ./node_modules/@devicescript/cli/devicescript run -t keychecker.devs
using devs: v2.11.6, runtime: v2.11.6, node: v18.16.1 from /home/user/Desktop/1_July/pawykey/pwnykey/node_modules/@devicescript/cli/built
WASM> DeviceScript Simulator (WASM) v2.11.6; file v2.11.6
WASM> start: (no name) (null)
WASM> start!
WASM> connecting to tcp://localhost:80
WASM> socket tcp://localhost:80 open undefined
WASM> req: GET /check HTTP/1.1
WASM> user-agent: DeviceScript fetch()
WASM> accept: */*
WASM> host: localhost
WASM> connection: close
WASM>
WASM> HTTP 200: OK
WASM> server: Werkzeug/2.3.3 Python/3.10.6
WASM> date: Sun, 02 Jul 2023 01:32:32 GMT
WASM> content-type: text/html; charset=utf-8
WASM> content-length: 29
WASM> connection: close
WASM> fetched key: 00000-00000-00000-00000-00001
WASM> key format ok
WASM> Unhandled exception
WASM> Exception: Error
WASM> message: Invalid key
WASM> at main_F0 (pc:562)
WASM> Unhandled exception
PANIC 60005
test failed
Error: test failed
After starting the server, and running this command standalone, it looks something like thisuser@user-virtual-machine:~/Desktop/1_July/pawykey/pwnykey$ ./node_modules/@devicescript/cli/devicescript run -t keychecker.devs
using devs: v2.11.6, runtime: v2.11.6, node: v18.16.1 from /home/user/Desktop/1_July/pawykey/pwnykey/node_modules/@devicescript/cli/built
WASM> DeviceScript Simulator (WASM) v2.11.6; file v2.11.6
WASM> start: (no name) (null)
WASM> start!
WASM> connecting to tcp://localhost:80
WASM> socket tcp://localhost:80 open undefined
WASM> req: GET /check HTTP/1.1
WASM> user-agent: DeviceScript fetch()
WASM> accept: */*
WASM> host: localhost
WASM> connection: close
WASM>
WASM> HTTP 200: OK
WASM> server: Werkzeug/2.3.3 Python/3.10.6
WASM> date: Sun, 02 Jul 2023 01:32:32 GMT
WASM> content-type: text/html; charset=utf-8
WASM> content-length: 29
WASM> connection: close
WASM> fetched key: 00000-00000-00000-00000-00001
WASM> key format ok
WASM> Unhandled exception
WASM> Exception: Error
WASM> message: Invalid key
WASM> at main_F0 (pc:562)
WASM> Unhandled exception
PANIC 60005
test failed
Error: test failed
After starting the server, and running this command standalone, it looks something like this node --print-wasm-code ./node_modules/@devicescript/cli/devicescript run -t keychecker.devs > wasm_code.txt var _jd_em_set_device_id_2x_i32 = Module2["_jd_em_set_device_id_2x_i32"] = createExportWrapper("jd_em_set_device_id_2x_i32");
var _jd_em_set_device_id_string = Module2["_jd_em_set_device_id_string"] = createExportWrapper("jd_em_set_device_id_string"); ).option("--gc-stress", "stress-test the GC").option("--device-id <string>", "set device ID").option("--devtools", "set when spawned from devtools").option("--stateless", "disable 'flash'").option("--clear-flash", "clear flash before starting").action(startVm);
Should be from a cmd line ).option("--gc-stress", "stress-test the GC").option("--device-id <string>", "set device ID").option("--devtools", "set when spawned from devtools").option("--stateless", "disable 'flash'").option("--clear-flash", "clear flash before starting").action(startVm);
Should be from a cmd line node ./node_modules/@devicescript/cli/devicescript disasm keychecker.devs